home *** CD-ROM | disk | FTP | other *** search
/ Nightshift Sound & Vision / Nightshift - Sound & Vision.iso / programs / sound / randsam / src / randcmd.h < prev    next >
C/C++ Source or Header  |  1990-08-11  |  1KB  |  47 lines

  1. /* Randsam header file */
  2.  
  3.  
  4.  
  5. #define CMDPORTNAME "Randsam cmd port"
  6.  
  7.  
  8. struct commandrequest {
  9.     struct Message cmd_Msg;   /* Standard msg */
  10.     LONG Command;             /* Command types below */
  11.     char *data1;              /* Optional data pointers used by COM_CONF */
  12.     char *data2;
  13. };
  14.  
  15. #define COM_QUIT   1
  16. #define COM_PLAY   2          /* play all the samples in the config */
  17. #define COM_CONF   3          /* Data request.
  18.                                * returns pointers to
  19.                                * struct Values
  20.                                * struct SampleData (Only the last played) */
  21.  
  22.  
  23. struct Values {
  24.     ULONG   vl_num       ,    /* Number of available samples */
  25.             vl_cur       ,    /* Current sample number */
  26.             vl_mindelay  ,    /* Minimum delay in secs */
  27.             vl_maxdelay  ,    /* Maximum */
  28.             vl_mincyc    ,    /* Minimum cycles        */
  29.             vl_maxcyc    ,    /* Maximum cycles        */
  30.             vl_randseed  ,    /* Random seed used      */
  31.             vl_waittime;      /* Seconds left for the timer-request */
  32.     UWORD   vl_maxdiff   ,    /* Maximum period difference */
  33.             vl_diff      ,    /* Difference on current (last) sample */
  34.             vl_speed     ,    /* period value */
  35.             vl_Cyc       ,    /* number of cycles      */
  36.             vl_vol;           /* Volume */
  37. };
  38.  
  39. struct SampleData {
  40.     char    Name[128];
  41.     WORD    Period;
  42.     WORD    Cycles;
  43.     WORD    Vol;
  44. };
  45.  
  46.  
  47.